package com.itheima.mybatis.framework;

import org.dom4j.Document;
import org.dom4j.DocumentException;
import org.dom4j.Element;
import org.dom4j.io.SAXReader;

import java.io.InputStream;
import java.sql.Connection;
import java.util.List;

/**
 * @author ：sean
 * @date ：Created in 2020/6/29
 * @description ：
 * @version: 1.0
 */
public class DefaultHmSqlSessionFactory implements HmSqlSessionFactory{

  private  HmConfiguration configuration;

  public DefaultHmSqlSessionFactory(HmConfiguration configuration) {
    this.configuration = configuration;
  }

  @Override
  public HmSqlSession openSession() {
    return new DefaultHmSqlSession(this.configuration);
  }

}
